<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>报告标题</title>
    <meta name="generator" content="HTMLTestRunner 0.1"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    
    <link href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">

    
<style type="text/css" media="screen">
body        { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table       { font-size: 100%; }
pre         { white-space: pre-wrap;word-wrap: break-word; }

/* -- heading ---------------------------------------------------------------------- */
h1 {
	font-size: 16pt;
	color: gray;
}
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}

.heading .attribute {
    margin-top: 1ex;
    margin-bottom: 0;
}

.heading .description {
    margin-top: 2ex;
    margin-bottom: 3ex;
}

/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}

a.popup_link:hover {
    color: red;
}

.popup_window {
    display: none;
    position: relative;
    left: 0px;
    top: 0px;
    /*border: solid #627173 1px; */
    padding: 10px;
    background-color: #E6E6D6;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    text-align: left;
    font-size: 8pt;
    /* width: 500px;*/
}
.img{
	height: 100%;
	border-collapse: collapse;
    border: 2px solid #777;
}

.screenshots {
    z-index: 100;
	position:fixed;
	height: 80%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
	display: none;
}

.imgyuan{
    height: 20px;
    border-radius: 12px;
    background-color: red;
    padding-left: 13px;
    margin: 0 auto;
    position: relative;
    top: -40px;
    background-color: rgba(1, 150, 0, 0.3);
}
.imgyuan font{
    border:1px solid white;
    width:11px; 
    height:11px;
    border-radius:50%;
    margin-right: 9px;
    margin-top: 4px;
    display: block;
    float: left;
    background-color: white;
}
.close_shots {
    background-image: url();
    background-size: 22px 22px;
    -moz-background-size: 22px 22px;
    background-repeat: no-repeat;
    position: absolute;
    top: 5px;
    right: 5px;
    height: 22px;
    z-index: 99;
    width: 22px;
}

}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
    margin-top: 3ex;
    margin-bottom: 1ex;
}
#result_table {
    width: 99%;
}
#header_row {
    font-weight: bold;
    color: white;
    background-color: #777;
}
#total_row  { font-weight: bold; }
.passClass  { background-color: #00DB00; }
.failClass  { background-color: #FF5151; }
.errorClass { background-color: #FF8A19; }
.passCase   { color: #00A600; }
.failCase   { color: #FF5151; font-weight: bold; }
.errorCase  { color: #FF8A19; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }


/* -- ending ---------------------------------------------------------------------- */
#ending {
}

#div_base {
            position:absolute;
            top:0%;
            left:5%;
            right:5%;
            width: auto;
            height: auto;
            margin: -15px 0 0 0;
}

</style>

    <script src="https://cdn.bootcss.com/echarts/3.8.5/echarts.common.min.js"></script>

</head>
<body>
    <script language="javascript" type="text/javascript"><!--
    output_list = Array();
    
    /*level 增加测试结果的筛选条件  --zhaohongwei
    0:Summary //all hiddenRow
    1:Pass    //pt none, ft hiddenRow, et hiddenRow
    2:Failed  //pt hiddenRow, ft none, et hiddenRow
    3:Error    //pt hiddenRow, ft hiddenRow, et none
    4:All     //pt none, ft none, et none
    */
    
    /* level - 0:Summary; 1:Pass; 2:Failed; 3:Error; 4: All*/
    function showCase(level) {
        trs = document.getElementsByTagName("tr");
        for (var i = 0; i < trs.length; i++) {
            tr = trs[i];
            id = tr.id;
            if (id.substr(0,2) == 'ft') {
            if (level == 1 || level == 3 ||  level == 0) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
                }
            }
            if (id.substr(0,2) == 'pt') {
                if (level == 2 || level == 3 ||  level == 0){
                    tr.className = 'hiddenRow';
                }
                else {
                    tr.className = '';
                }
            }
            if (id.substr(0,2) == 'et') {
                if (level == 1 || level == 2 ||  level == 0 ){
                    tr.className = 'hiddenRow';
                }
                else {
                    tr.className = '';
                }
            }
        }
    }
    /* 优化详情与收缩不生效  --zhaohongwei */
    function showClassDetail(cid, count) {
        var id_list = Array(count);
        var toHide = 1;
        for (var i = 0; i < count; i++) {
            tid0 = 't' + cid.substr(1) + '_' + (i+1);
            tid = 'f' + tid0;
            tr = document.getElementById(tid);
            if (!tr) {
                tid = 'p' + tid0;
                tr = document.getElementById(tid);
            }
            /* 增加error  --zhaohongwei*/
            if (!tr) {
                tid = 'e' + tid0;
                tr = document.getElementById(tid);
            }
            id_list[i] = tid;
            if (tr.className) {
                toHide = 0;
            }
        }
        for (var i = 0; i < count; i++) {
            tid = id_list[i];
            if (toHide) {
                document.getElementById('div_'+tid).style.display = 'none'
                document.getElementById(tid).className = 'hiddenRow';
            }
            else {
                document.getElementById(tid).className = '';
            }
        }
    }


    function showTestDetail(div_id){
        var details_div = document.getElementById(div_id)
        var displayState = details_div.style.display
        // alert(displayState)
        if (displayState != 'block' ) {
            displayState = 'block'
            details_div.style.display = 'block'
        }
        else {
            details_div.style.display = 'none'
        }
    }
    
    
    function html_escape(s) {
        s = s.replace(/&/g,'&amp;');
        s = s.replace(/</g,'&lt;');
        s = s.replace(/>/g,'&gt;');
        return s;
    }
    /* 增加selenium结合unittest测试的结果截图 --zhaohongwei  引用自GoverSky*/
    function show_img(obj) {
        var obj1 = obj.nextElementSibling
        obj1.style.display='block'
        var index = 0;//每张图片的下标，
        var len = obj1.getElementsByTagName('img').length;
        var imgyuan = obj1.getElementsByClassName('imgyuan')[0]
        //var start=setInterval(autoPlay,500);
        obj1.onmouseover=function(){//当鼠标光标停在图片上，则停止轮播
            clearInterval(start);
        }
        obj1.onmouseout=function(){//当鼠标光标停在图片上，则开始轮播
            start=setInterval(autoPlay,1000);
        }    
        for (var i = 0; i < len; i++) {
            var font = document.createElement('font')
            imgyuan.appendChild(font)
        }
        var lis = obj1.getElementsByTagName('font');//得到所有圆圈
        changeImg(0)
        var funny = function (i) {
            lis[i].onmouseover = function () {
                index=i
                changeImg(i)
            }
        }
        for (var i = 0; i < lis.length; i++) {
            funny(i);
    }
    
    function autoPlay(){
        if(index>len-1){
            index=0;
            clearInterval(start); //运行一轮后停止
        }
        changeImg(index++);
    }
    imgyuan.style.width= 25*len +"px";
    //对应圆圈和图片同步
    function changeImg(index) {
        var list = obj1.getElementsByTagName('img');
        var list1 = obj1.getElementsByTagName('font');
        for (i = 0; i < list.length; i++) {
            list[i].style.display = 'none';
            list1[i].style.backgroundColor = 'white';
        }
        list[index].style.display = 'block';
        list1[index].style.backgroundColor = 'blue';
    }

    }
    function hide_img(obj){
        obj.parentElement.style.display = "none";
        obj.parentElement.getElementsByClassName('imgyuan')[0].innerHTML = "";
    }
    --></script>
    <div id="div_base">
        
    <div class='page-header'>
        <h1>报告标题
        </h1>
        <div style="float:left;width:50%;">
            <p class='parameters'> <p class='attribute'><strong>测试人员:</strong> 测试人</p>
<p class='attribute'><strong>开始时间:</strong> 2025-02-19 15:02:10</p>
<p class='attribute'><strong>运行时长:</strong> 0:00:02.750157</p>
<p class='attribute'><strong>测试结果:</strong> 共 6  通过 5 错误 1  通过率:83.3%</p>
</p>
            <br>
            <br>
            <p class='description'> 报告描述</p>
        </div>
        <div id="chart" style="float:left;width:50%;height:250px;"></di>
    </div>


        
<div class="btn-group btn-group-sm">
<button class="btn btn-primary" onclick='javascript:showCase(0)'>概览</button>
<button class="btn btn-success" onclick='javascript:showCase(1)'>成功</button>
<button class="btn btn-danger" onclick='javascript:showCase(2)'>失败</button>
<button class="btn btn-warning" onclick='javascript:showCase(3)'>错误</button>
<button class="btn btn-info" onclick='javascript:showCase(4)'>全部</button>
</div>
<p></p>
<table id='result_table' class="table table-bordered">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
    <td>测试套件/测试用例</td>
    <td>总数</td>
    <td>通过</td>
    <td>失败</td>
    <td>错误</td>
    <td>查看</td>
</tr>

<tr class='errorClass'>
    <td>unittest.loader._FailedTest</td>
    <td>1</td>
    <td>0</td>
    <td>0</td>
    <td>1</td>
    <td><a href="javascript:showClassDetail('c1',1)">详情</a></td>
</tr>

<tr id='et1_1' class='none'>
    <td class='errorCase'><div class='testcase'>test_api</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_et1_1')" >
        错误</a>

    <div id='div_et1_1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_et1_1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
et1_1: ImportError: Failed to import test module: testcase.test_api
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\unittest\loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "C:\Program Files\Python38\lib\unittest\loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "D:\pycharmprojects\ApiTest\testcase\test_api.py", line 38, in &lt;module&gt;
    response = requests.get(url=url, headers=headers)
  File "D:\pycharmprojects\ApiTest\venv\lib\site-packages\requests\api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "D:\pycharmprojects\ApiTest\venv\lib\site-packages\requests\api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "D:\pycharmprojects\ApiTest\venv\lib\site-packages\requests\sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "D:\pycharmprojects\ApiTest\venv\lib\site-packages\requests\sessions.py", line 697, in send
    adapter = self.get_adapter(url=request.url)
  File "D:\pycharmprojects\ApiTest\venv\lib\site-packages\requests\sessions.py", line 792, in get_adapter
    raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for '协议://ip:端口/路径?参数'



        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='passClass'>
    <td>testcase.test_crmeb_shopping.Shopping</td>
    <td>5</td>
    <td>5</td>
    <td>0</td>
    <td>0</td>
    <td><a href="javascript:showClassDetail('c2',5)">详情</a></td>
</tr>

<tr id='pt2_1' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_01_add_cart: 加入购物车</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt2_1')" >
        通过</a>

    <div id='div_pt2_1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt2_1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt2_1: 200
{"status":200,"msg":"success","data":{"cartId":"1355"}}
1355


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr id='pt2_2' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_02_default_address: 获取默认收货地址</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt2_2')" >
        通过</a>

    <div id='div_pt2_2' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt2_2').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt2_2: 200
{"status":200,"msg":"success","data":{"id":18,"real_name":"xxxx","phone":"13855662223","province":"北京市","city":"北京市","district":"东城区","detail":"11111","is_default":1}}


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr id='pt2_3' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_03_confirm_order: 确认订单</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt2_3')" >
        通过</a>

    <div id='div_pt2_3' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt2_3').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt2_3: 1355
200
{"status":200,"msg":"success","data":{"storeFreePostage":1000000,"virtual_type":0,"valid_count":1,"deduction":false,"addressInfo":{"id":18,"uid":17,"real_name":"xxxx","phone":"13855662223","province":"北京市","city":"北京市","city_id":2,"district":"东城区","detail":"11111","post_code":0,"longitude":"0","latitude":"0","is_default":1},"seckill_id":0,"combination_id":0,"bargain_id":0,"advance_id":0,"cartInfo":[{"id":1355,"uid":17,"type":"0","product_id":3,"product_attr_unique":"11c60075","cart_num":1,"add_time":1739948529,"is_pay":0,"is_del":0,"is_new":0,"combination_id":0,"seckill_id":0,"bargain_id":0,"advance_id":0,"status":1,"productInfo":{"id":3,"mer_id":0,"image":"http:\/\/172.31.15.134\/uploads\/attach\/2023\/02\/20230213\/small_5ae4f6a3f8bf153beb849e02e14b5c40.png","recommend_image":"","slider_image":["http:\/\/172.31.15.134\/uploads\/attach\/2023\/02\/20230213\/5ae4f6a3f8bf153beb849e02e14b5c40.png"],"store_name":"蓝牙音乐手表 | Jeep智能表蓝牙通话健康管理 P07","store_info":"","keyword":"","bar_code":"","cate_id":"13,15,12,17,10","price":"269.00","vip_price":"0.00","ot_price":"359.00","postage":"0.00","unit_name":"件","sort":0,"sales":10788,"stock":99311,"is_show":1,"is_hot":1,"is_benefit":1,"is_best":1,"is_new":1,"is_virtual":0,"virtual_type":0,"add_time":1676281988,"is_postage":0,"is_del":0,"mer_use":0,"give_integral":100,"cost":"219.00","is_seckill":0,"is_bargain":0,"is_good":1,"is_sub":0,"is_vip":0,"ficti":30,"browse":0,"code_path":"","soure_link":"","video_link":"","temp_id":0,"spec_type":1,"activity":"0,1,2,3","spu":"5254981082521","label_id":"","command_word":"","recommend_list":"1,2","vip_product":0,"presale":0,"presale_start_time":0,"presale_end_time":0,"presale_day":1,"logistics":"1,2","freight":2,"custom_form":"[]","is_limit":0,"limit_type":0,"limit_num":0,"express_delivery":true,"store_mention":true,"attrInfo":{"id":183,"product_id":3,"suk":"黑色,46mm","stock":99311,"sales":679,"price":"269.00","image":"http:\/\/172.31.15.134\/uploads\/attach\/2023\/02\/20230213\/small_5ae4f6a3f8bf153beb849e02e14b5c40.png","unique":"11c60075","cost":"219.00","bar_code":"","ot_price":"359.00","vip_price":"0.00","weight":"1.00","volume":"1.00","brokerage":"0.00","brokerage_two":"0.00","type":0,"quota":0,"quota_show":0,"is_virtual":0,"coupon_id":0,"disk_info":""}},"attrStatus":true,"vip_truePrice":0,"costPrice":"219.00","trueStock":99311,"truePrice":269,"sum_price":"269.00","price_type":"level","is_valid":1}],"custom_form":[],"priceGroup":{"storePostage":"0.00","storeFreePostage":1000000,"isStoreFreePostage":false,"sumPrice":"269.00","totalPrice":"269.00","costPrice":"219.00","vipPrice":"0.00","storePostageDiscount":0,"cartInfo":[{"id":1355,"uid":17,"type":"0","product_id":3,"product_attr_unique":"11c60075","cart_num":1,"add_time":1739948529,"is_pay":0,"is_del":0,"is_new":0,"combination_id":0,"seckill_id":0,"bargain_id":0,"advance_id":0,"status":1,"productInfo":{"id":3,"mer_id":0,"image":"http:\/\/172.31.15.134\/uploads\/attach\/2023\/02\/20230213\/small_5ae4f6a3f8bf153beb849e02e14b5c40.png","recommend_image":"","slider_image":["http:\/\/172.31.15.134\/uploads\/attach\/2023\/02\/20230213\/5ae4f6a3f8bf153beb849e02e14b5c40.png"],"store_name":"蓝牙音乐手表 | Jeep智能表蓝牙通话健康管理 P07","store_info":"","keyword":"","bar_code":"","cate_id":"13,15,12,17,10","price":"269.00","vip_price":"0.00","ot_price":"359.00","postage":"0.00","unit_name":"件","sort":0,"sales":10788,"stock":99311,"is_show":1,"is_hot":1,"is_benefit":1,"is_best":1,"is_new":1,"is_virtual":0,"virtual_type":0,"add_time":1676281988,"is_postage":0,"is_del":0,"mer_use":0,"give_integral":100,"cost":"219.00","is_seckill":0,"is_bargain":0,"is_good":1,"is_sub":0,"is_vip":0,"ficti":30,"browse":0,"code_path":"","soure_link":"","video_link":"","temp_id":0,"spec_type":1,"activity":"0,1,2,3","spu":"5254981082521","label_id":"","command_word":"","recommend_list":"1,2","vip_product":0,"presale":0,"presale_start_time":0,"presale_end_time":0,"presale_day":1,"logistics":"1,2","freight":2,"custom_form":"[]","is_limit":0,"limit_type":0,"limit_num":0,"express_delivery":true,"store_mention":true,"attrInfo":{"id":183,"product_id":3,"suk":"黑色,46mm","stock":99311,"sales":679,"price":"269.00","image":"http:\/\/172.31.15.134\/uploads\/attach\/2023\/02\/20230213\/small_5ae4f6a3f8bf153beb849e02e14b5c40.png","unique":"11c60075","cost":"219.00","bar_code":"","ot_price":"359.00","vip_price":"0.00","weight":"1.00","volume":"1.00","brokerage":"0.00","brokerage_two":"0.00","type":0,"quota":0,"quota_show":0,"is_virtual":0,"coupon_id":0,"disk_info":""}},"attrInfo":{"id":183,"product_id":3,"suk":"黑色,46mm","stock":99311,"sales":679,"price":"269.00","image":"http:\/\/172.31.15.134\/uploads\/attach\/2023\/02\/20230213\/5ae4f6a3f8bf153beb849e02e14b5c40.png","unique":"11c60075","cost":"219.00","bar_code":"","ot_price":"359.00","vip_price":"0.00","weight":"1.00","volume":"1.00","brokerage":"0.00","brokerage_two":"0.00","type":0,"quota":0,"quota_show":0,"is_virtual":0,"coupon_id":0,"disk_info":""},"attrStatus":true,"vip_truePrice":0,"costPrice":"219.00","trueStock":99311,"truePrice":269,"sum_price":"269.00","price_type":"level","is_valid":1,"postage_price":"0.00","origin_postage_price":"0.00"}],"levelPrice":"0.00","memberPrice":0},"orderKey":"623534166947921920","offlinePostage":"0","userInfo":{"uid":17,"real_name":"xxxx","birthday":-28800,"card_id":"","mark":"","partner_id":0,"group_id":0,"nickname":"张三","avatar":"http:\/\/172.31.15.134\/statics\/system_images\/default_avatar.jpeg","phone":"13855662233","add_time":1733812005,"last_time":1739935484,"now_money":"990087.99","brokerage_price":"0.00","integral":0,"exp":"0.00","sign_num":0,"status":1,"level":0,"agent_level":0,"spread_open":0,"spread_uid":0,"spread_time":0,"user_type":"h5","is_promoter":0,"pay_count":67,"spread_count":0,"addres":"","adminid":0,"login_type":"","record_phone":"13855662223","is_money_level":0,"is_ever_level":0,"overdue_time":0,"uniqid":"","division_type":0,"division_status":0,"is_division":0,"is_agent":0,"is_staff":0,"division_id":0,"agent_id":0,"staff_id":0,"division_percent":0,"division_change_time":0,"division_end_time":0,"division_invite":0,"is_del":0,"vip":true,"vip_id":0,"discount":0},"integralRatio":"0.1","offline_pay_status":1,"yue_pay_status":1,"pay_weixin_open":true,"friend_pay_status":0,"store_self_mention":false,"ali_pay_status":false,"system_store":[],"invoice_func":true,"special_invoice":true,"usable_integral":"0","integral_open":true}}


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr id='pt2_4' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_04_create_order: 创建订单</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt2_4')" >
        通过</a>

    <div id='div_pt2_4' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt2_4').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt2_4: 200
{"status":200,"msg":"订单创建成功","data":{"status":"SUCCESS","result":{"orderId":"cp415161144714209623","key":"623534166947921920"}}}


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr id='pt2_5' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_05_pay: 余额支付</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt2_5')" >
        通过</a>

    <div id='div_pt2_5' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt2_5').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt2_5: 200
{"status":200,"msg":"余额支付成功","data":{"status":"SUCCESS","result":[]}}


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr id='total_row'>
    <td>总计</td>
    <td>6</td>
    <td>5</td>
    <td>0</td>
    <td>1</td>
    <td>通过率：83.3%</td>
    
</tr>
</table>

        
<div id='ending'>
    <p align="center">
    Copyright &copy 2016
    <a href="http://blog.csdn.net/z_johnny" target="_blank"> HONGWEI </a>
    Inc. All rights reserved.
    </p>
</div>
 <div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
    <a href="#"><span class="glyphicon glyphicon-chevron-up" style = "font-size:30px;" aria-hidden="true">
    </span></a></div>

        
        <script type="text/javascript">
            // 基于准备好的dom，初始化echarts实例
            var myChart = echarts.init(document.getElementById('chart'));

            // 指定图表的配置项和数据
            var option = {
                title : {
                    text: '测试执行情况',
                    x:'center'
                },
                tooltip : {
                    trigger: 'item',
                    formatter: "{a} <br/>{b} : {c} ({d}%)"
                },
                color: ['#00A600', '#FF5151', '#FF8A19'],
                legend: {
                    orient: 'vertical',
                    left: 'left',
                    data: ['通过','失败','错误']
                },
                series : [
                    {
                        name: '测试执行情况',
                        type: 'pie',
                        radius : '60%',
                        center: ['50%', '60%'],
                        data:[
                            {value:5, name:'通过'},
                            {value:0, name:'失败'},
                            {value:1, name:'错误'}
                        ],
                        itemStyle: {
                            emphasis: {
                                shadowBlur: 10,
                                shadowOffsetX: 0,
                                shadowColor: 'rgba(0, 0, 0, 0.5)'
                            }
                        }
                    }
                ]
            };

            // 使用刚指定的配置项和数据显示图表。
            myChart.setOption(option);
        </script>
        
    </div>
</body>
</html>
